﻿using System;
using System.Collections.Generic;

namespace DirectService.Server.Com.taobao.Models
{
    /// <summary>
    /// 订单实例
    /// </summary>
    public sealed class Task
    {
        /// <summary>
        /// 本地订单号
        /// </summary>
        public string taskcode { get; set; }
        /// <summary>
        /// 获取订单信息失败原因，如出错则以下内容为空
        /// </summary>
        public string ErrMsg { get; set; }
        /// <summary>
        /// 云订单号
        /// </summary>
        public string tid { get; set; }
        /// <summary>
        /// 工厂订单号
        /// </summary>
        public string ftaskcode { get; set; }
        /// <summary>
        /// 订单进度
        /// </summary>
        public int? status { get; set; }
        /// <summary>
        /// 订单进度说明
        /// </summary>
        public string statusname { get; set; }
        /// <summary>
        /// 生产发货进度
        /// </summary>
        public int? fstatus { get; set; }
        /// <summary>
        /// 生产发货进度说明
        /// </summary>
        public string fstatusname { get; set; }
        /// <summary>
        /// 订单工厂进度
        /// </summary>
        public int? erpstatus { get; set; }
        /// <summary>
        /// 订单工厂进度说明
        /// </summary>
        public string erpstatusname { get; set; }
        /// <summary>
        /// 订单的明细列表
        /// </summary>
        public List<SKU> skus { get; set; }
        /// <summary>
        /// 明细工组进度列表
        /// </summary>
        public List<Wrkgrpjd> wrkgrpjds { get; set; }



        /// <summary>
        /// 供应商(工厂)在龙嘉云服务上的唯一ID
        /// </summary>
        public int? sptcomid { get; set; }
        /// <summary>
        /// 供应商编码,(BindCopy绑定时传入的供应商编码)
        /// </summary>
        public string sptcode { get; set; }
        /// <summary>
        /// 订单需求日期
        /// </summary>
        public DateTime? requiredate { get; set; }
        /// <summary>
        /// 订单建立人（跟单人）
        /// </summary>
        public string opemp { get; set; }
        /// <summary>
        /// 订单建立时间
        /// </summary>
        public DateTime? opdate { get; set; }
        /// <summary>
        /// 相关号
        /// </summary>
        public string relcode { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string dscrp { get; set; }

    }
}
